﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlInSubquery : SqlIn {
		private readonly SqlQueryExpressionBase _subQuery;
		public SqlInSubquery(SqlExpression test, SqlQueryExpressionBase subQuery)
			: base(test) {
			_subQuery = subQuery;
		}
		public SqlQueryExpressionBase SubQuery {
			get {
				return _subQuery;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.InSubquery;
			}
		}
	}
}
